package com.wei.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 轮播图表
 * </p>
 *
 * @author 蔡徐坤
 * @since 2025-07-28
 */
@Getter
@Setter
@TableName("banner")
@Schema(name = "BannerDO", description = "轮播图表")
public class BannerDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "轮播图ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "轮播图图片地址")
    @TableField("image_url")
    private String imageUrl;

    @Schema(description = "小标签")
    @TableField("tag")
    private String tag;

    @Schema(description = "是否启用（0禁用 1启用）")
    @TableField("enabled")
    private Integer enabled;

    @Schema(description = "是否大图（0否 1是）")
    @TableField("is_big")
    private Integer isBig;

    @Schema(description = "标题")
    @TableField("title")
    private String title;

    @Schema(description = "描述")
    @TableField("description")
    private String description;

//    @Schema(description = "目标产品ID")
//    @TableField("product_id")
//    private Long productId;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @Schema(description = "修改时间")
    @TableField("update_time")
    private Date updateTime;
}
